﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ClientWebPart Name="HorizontalNewsAppPart" Title="Horizontal News App Part" Description="This web part adds a dynamic horizontal news app part in your page." DefaultWidth="700" DefaultHeight="180">

    <Content Type="html" Src="~appWebUrl/Pages/HorizontalNewsAppPart.aspx?SPHostUrl={HostUrl}&amp;SPAppWebUrl={AppWebUrl}&amp;SPLanguage={Language}&amp;AutoStart=_AutoStart_&amp;Circular=_Circular_&amp;Speed=_Speed_&amp;Transition=_Transition_&amp;PanelFxSpeed=_PanelFxSpeed_&amp;CssFile=_CssFile_" />

    <Properties>
      <!-- General Settings -->
      <Property Name="AutoStart" Type="boolean" WebBrowsable="true" WebDisplayName="AutoStart" WebDescription="Please Choose if you want that the carousel slideshow starts automatically" WebCategory="General Settings" DefaultValue="true" RequiresDesignerPermission="true" />
      <Property Name="Circular" Type="boolean" WebBrowsable="true" WebDisplayName="Circular" WebDescription="Please Choose if you want that the news slideshow is circular" WebCategory="General Settings" DefaultValue="false" RequiresDesignerPermission="true" />
      <Property Name="CssFile" Type="string" WebBrowsable="true" WebDisplayName="Custom CSS File" WebDescription="Indicates a custom CSS file url" WebCategory="General Settings" DefaultValue="" RequiresDesignerPermission="true" />
      <!-- Effects Settings -->
      <Property Name="Speed" Type="int" WebBrowsable="true" WebDisplayName="Transition speed" WebDescription="Please Choose the transition speed between news" WebCategory="Effects Settings" DefaultValue="4000" RequiresDesignerPermission="true" />
      <Property Name="Transition" Type="enum" WebBrowsable="true" WebDisplayName="Transition" WebDescription="Please Choose the transition effect" WebCategory="Effects Settings" DefaultValue="easeOutExpo" RequiresDesignerPermission="true">
        <EnumItems>
          <EnumItem WebDisplayName="easeOutExpo" Value="easeOutExpo"/>
          <EnumItem WebDisplayName="easeOutBounce" Value="easeOutBounce"/>
          <EnumItem WebDisplayName="easeOutBack" Value="easeOutBack"/>
        </EnumItems>
      </Property>
      <Property Name="PanelFxSpeed" Type="int" WebBrowsable="true" WebDisplayName="Panel Fx Speed" WebDescription="Please Choose the effect panel speed" WebCategory="Effects Settings" DefaultValue="500" RequiresDesignerPermission="true" />
    </Properties>

  </ClientWebPart>
</Elements>
